#!/bin/bash

for ext in pdf epub doc; do
    for i in 978*.$ext; do
        [ -f "$i" ] && mv "$i" $(isbn.py --isbn10 $i).$ext
    done
done
